Meteor.startup(function() {
  // 邮件模板
  Accounts.emailTemplates.siteName = "Class卡司群聊";
  Accounts.emailTemplates.from = "Class卡司群聊团队 <class@imlooke.com>";
  Accounts.emailTemplates.verifyEmail = {
    subject() {
      return "验证邮箱";
    },
    html(user, url) {
      let options = {
        title: "我们只要验证一下这是不是你的邮箱就好了。这是你的邮箱吗？",
        linkName: "当然！",
        subtitle: "感谢你的注册，来自Class卡司群聊团队。"
      };
      return getEmailTemplate(user, url, options);
    }
  };
  Accounts.emailTemplates.resetPassword = {
    subject() {
      return "忘记密码";
    },
    html(user, url) {
      let options = {
        title: "忘记密码了？没关系，请点击下面的链接重置你的密码。",
        linkName: "重置密码",
        subtitle: "来自Class卡司群聊团队。"
      };
      return getEmailTemplate(user, url, options);
    }
  };
});